package com.cn.demo.controller;

import com.cn.demo.config.ConfigInfoProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ClientController {
    @Autowired
    private ConfigInfoProperties configInfoProperties;

    @RequestMapping(path = "/get")
    public String get() {
        return configInfoProperties.getConfig();
    }
}
